package cn.myfirefly.moming.house.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.myfirefly.core.entity.BasePO;

@Entity
@Table(name = "spf_trade_performance")
public class SpfTradePerformance extends BasePO implements java.io.Serializable {
		
	/**
	 * 
	 */
	private static final long serialVersionUID = -1790323690245778311L;
	//columns START
	/** ID */
	private Integer id;
	/** ID */
	private Integer tradeContractId;
	/** 业绩金额 */
	private BigDecimal performanceAmount;
	/** 老带新金额 */
	private BigDecimal oldNewAmount;
	/** 发放情况 */
	private String grantType;
	/** 佣金到账日期 */
	private java.util.Date commissionAccountDate;
	/** 未网签预计发放日期 */
	private java.util.Date unwebGrantDate;
	/** 发放百分比 */
	private BigDecimal grantPercent;
	/** 网签日期 */
	private java.util.Date webSignDate;
	/** 补发网签提成日期 */
	private java.util.Date reissueDate;
	/** 一次性发放日期 */
	private java.util.Date allGrantDate;
	//columns END

	/**
	 * ID
	 * @return
	 */
	@Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * ID
	 * @param value
	 */
	public void setId(Integer value) {
		this.id = value;
	}
		
	/**
	 * ID
	 * @return
	 */
	@Column(name = "trade_contract_id", nullable = true)
	public Integer getTradeContractId() {
		return this.tradeContractId;
	}
	
	/**
	 * ID
	 * @param value
	 */
	public void setTradeContractId(Integer value) {
		this.tradeContractId = value;
	}
		
	/**
	 * 业绩金额
	 * @return
	 */
	@Column(name = "performance_amount", nullable = true)
	public BigDecimal getPerformanceAmount() {
		return this.performanceAmount;
	}
	
	/**
	 * 业绩金额
	 * @param value
	 */
	public void setPerformanceAmount(BigDecimal value) {
		this.performanceAmount = value;
	}
		
	/**
	 * 老带新金额
	 * @return
	 */
	@Column(name = "old_new_amount", nullable = true)
	public BigDecimal getOldNewAmount() {
		return this.oldNewAmount;
	}
	
	/**
	 * 老带新金额
	 * @param value
	 */
	public void setOldNewAmount(BigDecimal value) {
		this.oldNewAmount = value;
	}
		
	/**
	 * 发放情况
	 * @return
	 */
	@Column(name = "grant_type", nullable = true)
	public String getGrantType() {
		return this.grantType;
	}
	
	/**
	 * 发放情况
	 * @param value
	 */
	public void setGrantType(String value) {
		this.grantType = value;
	}
		
		/**
		 * 佣金到账日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "commission_account_date", nullable = true)
	public Date getCommissionAccountDate() {
		return this.commissionAccountDate;
	}
	
	/**
	 * 佣金到账日期
	 * @param value
	 */
	public void setCommissionAccountDate(Date value) {
		this.commissionAccountDate = value;
	}
	
		/**
		 * 未网签预计发放日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "unweb_grant_date", nullable = true)
	public Date getUnwebGrantDate() {
		return this.unwebGrantDate;
	}
	
	/**
	 * 未网签预计发放日期
	 * @param value
	 */
	public void setUnwebGrantDate(Date value) {
		this.unwebGrantDate = value;
	}
	
	/**
	 * 发放百分比
	 * @return
	 */
	@Column(name = "grant_percent", nullable = true)
	public BigDecimal getGrantPercent() {
		return this.grantPercent;
	}
	
	/**
	 * 发放百分比
	 * @param value
	 */
	public void setGrantPercent(BigDecimal value) {
		this.grantPercent = value;
	}
		
		/**
		 * 网签日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "web_sign_date", nullable = true)
	public Date getWebSignDate() {
		return this.webSignDate;
	}
	
	/**
	 * 网签日期
	 * @param value
	 */
	public void setWebSignDate(Date value) {
		this.webSignDate = value;
	}
	
		/**
		 * 补发网签提成日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "reissue_date", nullable = true)
	public Date getReissueDate() {
		return this.reissueDate;
	}
	
	/**
	 * 补发网签提成日期
	 * @param value
	 */
	public void setReissueDate(Date value) {
		this.reissueDate = value;
	}
	
		/**
		 * 一次性发放日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "all_grant_date", nullable = true)
	public Date getAllGrantDate() {
		return this.allGrantDate;
	}
	
	/**
	 * 一次性发放日期
	 * @param value
	 */
	public void setAllGrantDate(Date value) {
		this.allGrantDate = value;
	}
}

